using Godot;
using System;

public class HierarchyTree : Tree
{
	// Declare member variables here. Examples:
	// private int a = 2;
	// private string b = "text";

	// Called when the node enters the scene tree for the first time.
	public override void _EnterTree()
	{
		base._EnterTree();
		GD.Print("HierarchyTree._EnterTree");
	}
	public override void _ExitTree()
	{
		base._ExitTree();
		GD.Print("HierarchyTree._ExitTree");
	}
	private void UpdateItems(Node node, TreeItem panent)
	{
		/*for (var i = 0; i < node.GetChildCount(); i++)
		{
			var child = node.GetChild(i);
			var item = CreateItem(panent);
			item.SetText(0, child.Name);
			UpdateItems(child, item);
		}*/
	}
	public override void _Ready()
	{
		/*GD.Print("HierarchyTree._Ready");
		HideRoot = true;
		SelectMode = SelectModeEnum.Multi;
		var root = CreateItem();
		GD.Print(GetRoot());
		UpdateItems(EditContent.Instance, root);*/
	}
}
